Copyright: Demo 2  - 1995 Steven Gotz


Main
Demo 2 - from Steven L. Gotz

Introduction

I often see questions about API calls, About Boxes and other such things on CompuServe and AOL.

I thought it was time to help out a bit since I have received so much help from others. I have often helped someone with a question I had only recently received the answer to myself. Then one day I received a really nice demo from someone that was trying to help me. I decided right then that I would try to do a better job of explaining things in the form of demos.

This Demo

The first purpose of this demo is to show how to use API calls to create better About Boxes. The second is to show how to launch programs if they are not running, and restore the window and set the focus if they are already running.

This is really just a sneaky way to convince the beginners out there to use API calls. The whole world opens up to the programmer who uses all of Windows capabilities from Visual Basic.

Feel free to use this code as you wish. Add the .BAS files to your apps. It is all open to the public. Don't worry if you do not understand it. I don't always. I just cut and paste from the help files and do what I am told. This may not even be the cleanest way to do things, but it works. So, if you have a better way, let me know. If it works for you, then great, if not, I will try to help in any way that I can. Just don't ask me WHY it works. It's Microsoft Windows.

Steven Gotz CIS:70563,207        AOL:StevenG400